﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title></title>
    <script>
    
    </script>
</head>
<body>
	<input type="text" id="thedate" name="thedate" value="1/1/2005" />
	<input type="button" onclick="go()" value="go" />
	<script>
		function go() {
			var regExp = new RegExp(/^\d{1,2}\/\d{1,2}\/\d{4}$/);
			
			var value = document.getElementById('thedate').value;
			console.log(value);
			console.log(regExp.test(value));
		}
	</script>
</body>
</html>
